package sms;

public class num {
	public  static boolean shuru_int(String value){

		try {
			Integer.parseInt(value);
			return true;
		} catch (Exception e) {
			System.out.println("不是整数!");
			return false;
		}
	}
	public  static boolean shuru_double(String value){

		try {
			Double.parseDouble(value);
			return true;
		} catch (Exception e) {
			System.out.println("不是成绩!");
			return false;
		}
	}
}
